import axios from "~/utils/axios";


//管理员登录
export function login(data){
    return axios.post('/back/permission/admin/login/',data)
    //return axios.post('/api/user/background-login/',{username,password})
}


//模拟接口
export function  mockGetinfo() {
    return axios.get('/api/user')
}

export function  mockLogin(data) {
    return axios.post('/api/login',data)
}

export function  mockLogout() {
    return axios.get('/api/lagout')
}